package com.qfedu.fmmal.controller;


import com.qfedu.fmmal.service.UserService;
import com.qfedu.fmmal.vo.ResultVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@ResponseBody
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService ;

    @RequestMapping("/login")
    public ResultVo login(String name ,String pwd){
        return userService.checklogin(name , pwd) ;
    }
}
